package com.icloud.common.database.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.icloud.common.database.model.CustomerWallet;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.math.BigDecimal;

public interface CustomerWalletMapper extends BaseMapper<CustomerWallet> {

    @Update("update customer_wallet set withdrawable=bcpc * #{withdrawMaxRate}")
    boolean updateWithdrawable(@Param("withdrawMaxRate")BigDecimal withdrawMaxRate);
}
